package org.jeecg.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.jeecg.modules.quartz.service.IMeterUseService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
@Slf4j
public class MeterUseJob implements Job {
    @Autowired
    private IMeterUseService meterUseService;
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info(DateUtils.now()+":开始定时任务");
        meterUseService.queryMonthMeterUse();
    }
}
